class LocationNumbModel02 {
  int code;
  String msg;
  String time;
  Data data;

  LocationNumbModel02({this.code, this.msg, this.time, this.data});

  LocationNumbModel02.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    time = json['time'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    data['time'] = this.time;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class Data {
  List<Item> list;
  int total;

  Data({this.list, this.total});

  Data.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      list = new List<Item>();
      json['list'].forEach((v) {
        list.add(new Item.fromJson(v));
      });
    }
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.list != null) {
      data['list'] = this.list.map((v) => v.toJson()).toList();
    }
    data['total'] = this.total;
    return data;
  }
}

class Item {
  String rCity;
  String sCity;
  int num;
  int createtime;
  String createtimeText;

  Item({this.rCity, this.num, this.createtime, this.createtimeText});

  Item.fromJson(Map<String, dynamic> json) {
    rCity = json['r_city'];
    sCity = json['s_city'];
    num = json['num'];
    createtime = json['createtime'];
    createtimeText = json['createtime_text'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['r_city'] = this.rCity;
    data['s_city'] = this.sCity;
    data['num'] = this.num;
    data['createtime'] = this.createtime;
    data['createtime_text'] = this.createtimeText;
    return data;
  }
}
